package Other;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.border.EmptyBorder;

import Database.Database;

public class TutorialScreen extends JFrame {

	private JPanel contentPane;
	JScrollPane pane;
	JTextArea area;
	
	public TutorialScreen() {
		setTitle("Chesney\u2019s Fireplaces  Application Tutorial");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 640, 788);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		Database.connect();
		String[][] tutorial = Database.returnQuery("Select Tutorial_Description from Tutorial");
		String s = tutorial[0][0];
		System.out.print(s);
		area = new JTextArea(s);
		pane = new JScrollPane(area);
		pane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
		getContentPane().add(pane);
	}

}
